package github.kawaiior.yuanchuxiuzhen.common.gongfa;

import github.kawaiior.yuanchuxiuzhen.Yuanchuxiuzhen;
import github.kawaiior.yuanchuxiuzhen.common.capability.entity.ManaPower;
import github.kawaiior.yuanchuxiuzhen.core.init.GongFaInit;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.world.World;

public abstract class GongFaBase implements IGongFa{
    private final ManaPower.ManaRoot manaRoot;
    private final int maxExperience;
    private final IGongFa preGongFa;

    private final String itemName;

    public GongFaBase(ManaPower.ManaRoot manaRoot, int maxExperience, IGongFa preGongFa, String itemName) {
        this.manaRoot = manaRoot;
        this.maxExperience = maxExperience;
        this.preGongFa = preGongFa;
        this.itemName = itemName;
    }

    @Override
    public ManaPower.ManaRoot getManaRoot() {
        return manaRoot;
    }

    @Override
    public IGongFa getPreGongFa() {
        return this.preGongFa;
    }

    @Override
    public int getMaxExperience() {
        return maxExperience;
    }

    @Override
    public String getItemName() {
        return "item."+ Yuanchuxiuzhen.MODID+"."+this.itemName;
    }
}
